﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DTOs
{
    public class LeaveDto
    {
        [Key]
        public int LeaveId { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public int LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime LeaveSdate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime LeaveEdate { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int DateNum { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ComeDate { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        public string? LeaveReason { get; set; }
       
        /// <summary>
        /// 用户名
        /// </summary>
        public string? userName { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public int departmentId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string? roleName { get; set; }
    }
}
